.timeline-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: white;
  padding-top: 60px; /* Account for fixed header */
}

.timeline-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.timeline-header {
  text-align: center;
  margin-bottom: 40px;
}

.timeline-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Timeline Controls */
.timeline-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.year-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-selector label {
  font-weight: 500;
}

.year-select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.view-mode-toggle {
  display: flex;
  gap: 5px;
}

.view-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.view-mode-btn.active {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.5);
  color: #00ffff;
}

.view-icon {
  font-size: 16px;
}

.timeline-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-top: 3px solid #00ffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Timeline Body */
.timeline-body {
  margin-top: 20px;
}

.timeline-year {
  margin-bottom: 40px;
}

.year-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #00ffff;
}

.year-stats {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.timeline-months {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-month {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.month-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: white;
}

.photo-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Grid View */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.photo-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.photo-item:hover {
  transform: translateY(-5px);
}

.photo-thumbnail {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-emoji {
  font-size: 2.5rem;
}

.photo-info {
  text-align: center;
}

.photo-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.photo-album {
  font-size: 0.8rem;
  color: #00ffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.photo-album:hover {
  color: #00cccc;
}

.more-photos {
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.1);
  border: 1px dashed rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.more-photos:hover {
  background: rgba(0, 255, 255, 0.2);
  color: white;
}

.more-photos span:first-child {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

/* List View */
.photo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.photo-list .photo-thumbnail {
  width: 60px;
  height: 60px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.photo-list .photo-emoji {
  font-size: 1.8rem;
}

.photo-info {
  flex: 1;
}

.photo-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: white;
}

.photo-list .photo-date {
  text-align: left;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.photo-list .photo-album {
  text-align: left;
  font-size: 0.8rem;
  color: #00ffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.photo-list .photo-album:hover {
  color: #00cccc;
}

.view-more-btn {
  padding: 10px 15px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px dashed rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.view-more-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: white;
}

/* No Photos State */
.no-photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.no-photos-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-photos h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: white;
}

.no-photos p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  max-width: 400px;
}

.upload-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-content {
    padding: 20px 15px;
  }
  
  .timeline-title {
    font-size: 2rem;
  }
  
  .timeline-controls {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .year-selector {
    justify-content: center;
  }
  
  .view-mode-toggle {
    justify-content: center;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .month-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .timeline-title {
    font-size: 1.8rem;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .photo-thumbnail {
    height: 100px;
  }
  
  .photo-emoji {
    font-size: 2rem;
  }
  
  .photo-list .photo-thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .photo-list .photo-emoji {
    font-size: 1.5rem;
  }
}